package com.thesis.downloader;

public class downloaderBusStop {
	public String mStreetNo;
	public String mStreetName;
	public String mDistrict;
	public double mLng;
	public double mLat;
	public int mID;
        public downloaderBusStop()
        {
            
        }
	
	public downloaderBusStop(String streetNo, String streetName, String district, double lat, double lng, int busStopID)
	{
		mStreetNo = streetNo;
		mStreetName = streetName;
		mDistrict = district;
		mLng = lng;
		mLat = lat;
		mID = busStopID;
	}
	
	public downloaderBusStop(String bustop)
	{
		String[] info = bustop.split(", ");
		mStreetNo = info[0];
		mStreetName = info[1];
		mDistrict = info[2];
		mLng = Double.parseDouble(info[3]);
		mLat = Double.parseDouble(info[4]);
		mID = Integer.parseInt(info[6]);
	}
	
	public String getAddress()
	{
		return (mStreetNo + ", đường " + mStreetName + ", quận " + mDistrict + " (" + mID + " " + mLng + " " + mLat + ")");
	}
	
	public String getLine()
	{
		return (mStreetNo + ", " + mStreetName + ", " + mDistrict + ", " + mID + ", " + mLng + ", " + mLat);

	}
	 
}
